﻿
namespace sinetd.Services.Modbus
{
    // http://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf
    public enum ExceptionCodes
    {
        ILLEGAL_FUNCTION = 0x01,
        ILLEGAL_DATA_ADDRESS = 0x02,
        ILLEGAL_DATA_VALUE = 0x03,
        SLAVE_DEVICE_FAILURE = 0x04,
        ACKNOWLEDGE = 0x05,
        SLAVE_DEVICE_BUSY = 0x06,
        MEMORY_PARITY_ERROR = 0x08,
        GATEWAY_PATH_UNAVAILABLE = 0x0A,
        GATEWAY_TARGET_DEVICE_FAILED_TO_RESPOND = 0x0B
    }
}
